/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.epid.reporter.test;

import org.epid.reporter.util.*;
import org.omg.PortableInterceptor.SYSTEM_EXCEPTION;

/**
 * The class manages the user related functionality.
 * 
 * @author shantha
 */
public class UserUtil {

    public static boolean login ( String userName, String password ) {
        
        boolean success = false;
        
        try {

            if ( userName != null && password != null ) {

                if ( userName.equalsIgnoreCase("user") && password.equals("pass")) {
                    success = true;
                }
            }

        } catch ( Exception exc ) {
            System.out.println ( exc);
            success = false;
        }

        return success;
    }
    
}
